package borge.web.teamspirit.client.page.team.panels;

import borge.web.teamspirit.client.interfaces.PanelHandler;
import borge.web.teamspirit.client.interfaces.WidgetEventHandler;
import borge.web.teamspirit.client.page.team.widgets.ListEventsWidget;
import borge.web.teamspirit.client.page.team.widgets.MenuWidget;

import com.google.gwt.user.client.ui.VerticalPanel;

public class LeftPanel extends VerticalPanel implements WidgetEventHandler {
	
	private MenuWidget iMenuWidget;
	private ListEventsWidget iListEventsWidget;
	private PanelHandler iPanelHandler;
	
	public LeftPanel(PanelHandler aPanelHandler){
		
	    iPanelHandler = aPanelHandler;
		iMenuWidget = new MenuWidget(this);
		iListEventsWidget = new ListEventsWidget(this, null);
		
		add(iMenuWidget);
		//add(iListEventsWidget);
	}
	
	public void handleWidgetEvent(WidgetEventType aEvent){
		
	    switch(aEvent){
	    
	    case MENU_CLICKED: {
	        
	        break;
	    }
	    case CLEAR_MENU: {
	        iMenuWidget.clearClickHistory();
	        break;
	    } 
	    
	    
	    }
	    
	}

}
